const d1= new Date('2021-12-19')  // 获取一个日期是否是工作日
console.log(d1.getDay());
console.log(new Date().getDay());

const isWorkDay=(date)=>date.getDay()%6 !==0
console.log(isWorkDay(d1))
console.log(!!Object)